// 表单样式
.page-container {
  width: 100%;
  height: 100%;

  & > .card {
    overflow: hidden;
    background-color: var(--el-bg-color);
    border: 1px solid var(--el-border-color-light);
    border-radius: 6px;
    box-shadow: 0 0 12px #0000000d;
  }

  // 顶部搜索栏样式
  .page-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    transition: height 0.2s;

    .search-content {
      display: flex;
      justify-content: space-between;
      width: 100%;

      // 查询条件很少时，让查询按钮离筛选条件更近一点，方便操作
      &.justify-start {
        justify-content: start;

        .search-form {
          flex: unset;
        }
      }

      .search-form {
        display: flex;
        flex: 1;
        flex-wrap: wrap;

        .el-form-item {
          display: flex;
          margin: 5px;
          margin-right: 16px;
          font-weight: 700;
          align-items: center;

          .el-input,
          .el-select {
            width: 217px;
            min-height: 36px;
            font-weight: 400;
          }

          .el-select__wrapper,
          .el-date-editor {
            min-height: 36px;
            font-weight: 400;
          }

          :deep(.select-trigger) {
            .el-input__inner {
              height: 34px;
            }
          }

          .el-form-item__label {
            padding-right: 12px;
            font-size: 14px;
          }
        }

        .el-form-item__label {
          width: 74px;
        }
      }

      .search-button {
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;

        .button-box {
          margin: 5px;
          margin-right: 0;
        }
      }
    }
  }

  // 页面主体
  .page-content {
    margin-top: 10px;

    // 表格内容
    .table-content {
      max-width: 100%;
      min-height: 400px;
      flex: 1;

      // 操作区域
      .operate-box {
        display: flex;
        padding: 12px 20px;
        background-color: var(--el-bg-color);
        border-bottom: 1px solid var(--el-border-color-light);
        align-items: center;
        justify-content: space-between;

        .table-name {
          font-size: 18px;
          font-weight: 700;
        }
      }

      // 分页表单
      .main-table {
        min-height: 500px;
        padding: 20px;
        border-bottom: 1px solid var(--el-border-color-light);

        .el-scrollbar__bar {
          .el-scrollbar__thumb {
            background-color: $primaryColor;
            border-radius: 8px;
          }
        }

        .el-button {
          margin-right: 12px;
          margin-left: 0;
        }
      }
    }
  }
}

/* mask image */
.mask-image {
  padding-right: 50px;
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 50px), transparent);
}
